package com.zziq.cloudpicturebank;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.zziq.cloudpicturebank.mapper") //扫描mapper
@EnableAsync // 开启异步任务
@EnableAspectJAutoProxy(exposeProxy = true) //开启AOP
@ServletComponentScan
@EnableScheduling // 启用定时任务
public class CloudPictureBankApplication {
    public static void main(String[] args) {
        SpringApplication.run(CloudPictureBankApplication.class, args);
    }

}
